var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0}),
    (o.changeState = void 0),
    (o.changeState = function (t, e, o) {
        if ((t.state && t.state.onExit(), (t.state = e ? new e() : null), t.state)) {
            if (((t.state.context = t), o))
                for (var n in o) {
                    var r = o[n];
                    t.state[n] = r;
                }
            t.state.onEnter();
        }
    });
